function setSidebarActive(th) {
    $(th).parent("li").siblings().removeClass("active");
    $(th).parent("li").addClass("active");
}

function getCheckId() {
    var size = $("input:checkbox:checked").length;
    if (size == 0) {
        return;
    } else {
        let $input = $('input[type=checkbox]:checked');
        let arr = new Array();
        for (let i = 0; i < $input.length; i++) {
            //alert(input[i].value);
            arr.push($input[i].value);
        }
        // return $('input[type=checkbox]:checked').val();
        return arr;
    }

}

function formSubmit(url, sTarget) {
    document.forms[0].target = sTarget
    document.forms[0].action = url;
    document.forms[0].submit();
    return true;
}